package ejb;

import ejb.entity.MessageFacade;
import entity.Message;
import java.util.List;
import javax.ejb.EJB;
import javax.faces.bean.ManagedBean;
import javax.faces.bean.SessionScoped;

@ManagedBean(name = "MessageBean")
@SessionScoped
public class operationBean {

    @EJB
    private MessageFacade messageFacade;

    public List<Message> getMessages() {
        return messageFacade.getMessages();
    }
}
